package com.atguigu.gmallsugar.service.impl;

import com.atguigu.gmallsugar.bean.Province;
import com.atguigu.gmallsugar.bean.Spu;
import com.atguigu.gmallsugar.bean.Tm;
import com.atguigu.gmallsugar.mapper.TradeMapper;
import com.atguigu.gmallsugar.service.TradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

/**
 * Project:gmallRealTime
 * Package:com.atguigu.gmallsugar.service.impl
 * Author: ZengHaiFeng
 * CreateTime:2023/5/6 16:55:38
 * Description: Todo
 * Version：1.0
 */
@Service
public class TradeServiceImpl implements TradeService {
    @Autowired
    private TradeMapper tradeMapper;
    @Override
    public BigDecimal gmv(Integer date) {
        return tradeMapper.gmv(date);
    }

    @Override
    public List<Spu> gmvBySpu(Integer date) {
        return tradeMapper.gmvBySpu(date);
    }

    @Override
    public List<Tm> gmvByTm(Integer date) {
        return tradeMapper.gmvByTm(date);
    }

    @Override
    public List<Province> province(Integer date) {
        return tradeMapper.province(date);
    }
}
